home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2009 February / PCWFEB09.iso / Software / Linux / SLAX 6.0.8 / slax-6.0.8.iso / slax / base / 003-desktop.lzm / usr / bin / artsc-config < prev    next >
Encoding:
Text File  |  2008-09-11  |  789 b   |  57 lines

  1. #!/bin/sh
  2.  
  3. usage()
  4. {
  5.     echo "usage: $0 [OPTIONS]"
  6. cat << EOH
  7.  
  8. options:
  9.     [--libs]
  10.     [--cflags]
  11.     [--version]
  12.     [--arts-version]
  13.     [--arts-prefix]
  14. EOH
  15.     exit 1;
  16. }
  17.  
  18. prefix=/usr
  19. exec_prefix=${prefix}
  20. libdir=${exec_prefix}/lib
  21. includedir=${prefix}/include
  22. libdl=-ldl
  23.  
  24. flags=""
  25.  
  26. while test $# -gt 0
  27. do
  28.   case $1 in
  29.     --libs)
  30.       flags="$flags -L$libdir $libdl -lartsc  -lpthread   -lgmodule-2.0 -ldl -lgthread-2.0 -lrt -lglib-2.0  "
  31.       ;;
  32.     --cflags)
  33.       flags="$flags -I$includedir/artsc -pthread -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include  "
  34.       ;;
  35.     --version)
  36.       echo 0.9.5
  37.       ;;
  38.     --arts-version)
  39.       echo 1.5.10
  40.       ;;
  41.     --arts-prefix)
  42.       echo $prefix
  43.       ;;
  44.     *)
  45.       echo "$0: unknown option $1"
  46.       echo 
  47.       usage
  48.       ;;
  49.   esac
  50.   shift
  51. done
  52.  
  53. if test -n "$flags"
  54. then
  55.   echo $flags
  56. fi
  57.